< previous page page_420 next page >

Page 420
(table continued from previous page)
PropertyDescription
LegalTrademarkThis property comes from the Legal Trademark value you set in the Project, Properties menu.
MajorThis property comes from the Major version number value you set in the Project, Properties menu.
MinorThis property comes from the Minor version number value you set in the Project, Properties menu.
PathThis property is filled in with the path of where the EXE file loaded when your application started.
PrevInstanceThis property returns True at runtime if theres another instance of this application running in the Windows environment. You can use this property to stop another instance of the same application from loading.
ProductNameThis property comes from the Product Name value you set in the Project, Properties menu.
RevisionThis property comes from the Revision Version Number value you set in the Project, Properties menu.
TaskVisibleThis property has a True value in it if the program is visible in the task bar of the operating system.
TitleThis property comes from the Title value you set in the Project, Properties menu.

You can use these properties at runtime to determine the current path where your EXE started (App.Path). You can also find out the name of the EXE file (App.EXEName). Youll mostly use this object to display the appropriate properties in an About form. Figure 21.3 shows you some of the different properties used to make an About form. All these properties come from the App object.
Examples Filename: ObjApp.frm
The information contained on this form is all obtained through properties of the App object. In the Form_Load() event of this form, a routine is called that fills in each of the text boxes on the form with the information from the App object. This routine is listed here:
9f31265bb40b592b1929e18a47ab28e5.gif
Private Sub Form_Load()
   txtProduct = App.ProductName
   txtVersion = App.Major & "." & _

 
< previous page page_420 next page >

If you like this book, buy it!